# Contributor: fossdd <fossdd@pwned.life>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=dodo
pkgver=0_git20241007
_commit=b6c4b18be17685e2960171fd4438d90edd348c9d
pkgrel=0
pkgdesc="Graphical, hackable email client based on notmuch"
url="https://github.com/akissinger/dodo"
arch="noarch !riscv64 !s390x !ppc64le" # blocked by py3-pyqt6-webengine
license="GPL-3.0-or-later"
depends="
	hicolor-icon-theme
	notmuch
	py3-bleach
	py3-pyqt6-webengine
	py3-qt6
	w3m
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$_commit.tar.gz::https://github.com/akissinger/dodo/archive/$_commit.tar.gz"
options="!check" # no tests
builddir="$srcdir/$pkgname-$_commit"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
c59348155b70bd8d1704a45f5b28bf08daca733f85730eca1983d7b6b0188590d92d7a319becc2792b1e949594d9d6bc4d868425ed24b7341bed729a6de21381  dodo-b6c4b18be17685e2960171fd4438d90edd348c9d.tar.gz
"
